package com.easybuy.sys.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easybuy.sys.model.SysAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easybuy.sys.model.SysUser;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author SR.Y
 * @since 2020-12-05
 */
public interface SysAddressService extends IService<SysAddress> {

    /**
     * 添加地址
     *
     * @param address
     * @return
     */
    boolean creat(SysAddress address);

    /**
     * 修改地址
     *
     * @param address
     * @return
     */
    boolean update(SysAddress address);

    /**
     * 删除地址
     *
     * @param idList
     * @return
     */
    boolean delete(List<Integer> idList);


    /**
     * 查询全部
     * @param address
     * @param pageSize
     * @param pageNum
     * @return
     */
    Page<SysAddress> list(SysAddress address,Integer pageSize, Integer pageNum);

    /**
     * 查询单个地址
     * @param id
     * @return
     */
    SysAddress getOneById(Integer id);
}
